﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMsaster.master" AutoEventWireup="true" CodeFile="LendAgain.aspx.cs" Inherits="Admin_LendAgain" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

      <script src="assets/js/jquery-1.10.2.js"></script>
    <!-- Bootstrap Js -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="assets/js/jquery.metisMenu.js"></script>
    <!-- DATA TABLE SCRIPTS -->
    <script src="assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="assets/js/dataTables/dataTables.bootstrap.js"></script>

    <!-- Custom Js -->
    <script src="assets/js/custom-scripts.js"></script>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>">
    </asp:SqlDataSource>
    <div id="page-wrapper">
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="page-header">读者图书续借<small> 为非网上自主续借的读者续借书籍</small>
                    </h1>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3>* 输入读者编号，输入图书编号，确认信息后即可完成续借</h3>
                        </div>
                        <br />
                        <p></p>
                        <div class="row">
                            <div class="col-md-12">
                             <!-- <p style="font-family:'Microsoft YaHei UI';font-size:19px;float:left;padding-left:20px;"><B>输入图书编号:</B></p> <asp:TextBox ID="TBbookid" class="form-control" runat="server" Style="width: 180px; float: left;margin-top: 16px;margin-left:12px;"></asp:TextBox>  -->
                              <p style="font-family:'Microsoft YaHei UI';font-size:19px;float:left;padding-left:20px;"><B>输入读者编号:</B></p> <asp:TextBox ID="TextBox1" class="form-control" runat="server" Style="width: 180px; float: left;margin-top: 16px;margin-left:12px;"></asp:TextBox>
                                <asp:Button ID="chaxun" CssClass="btn btn-primary" OnClick="chaxun_Click" runat="server" Text="获取图书与读者信息" style="float: left;margin-top: 16px;margin-left:20px;" />
                                  </div>
                        </div>
                        <hr />

                        <div class="panel-body">
                             <div class="panel-heading">
                            <h3>* 确认书籍信息和读者信息：</h3>
                        </div>
                            <div class="table-responsive">
                                <!-- 数据源开始 -->

                                <asp:GridView ID="mybookdata" class="mytablestyle table table-striped table-bordered table-hover" runat="server" DataSourceID="SqlDataSource1">

                                    <Columns>
                                        <asp:TemplateField HeaderText="选择">
                                            <ItemStyle HorizontalAlign="Center" />
                                            <ItemTemplate>
                                                <asp:CheckBox ID="CheckBox" CssClass="checkbox" runat="server"></asp:CheckBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <!-- 数据源结束 -->
                                <br />
                                <asp:Button ID="Cancel" CssClass="btn btn-default" runat="server" Text="取消选择" Style="float: right; padding-left: 20px;" OnClick="Cancel_Click" />
                                <asp:Button ID="sureBorrow" CssClass="btn btn-primary" runat="server" Text="确认续借该书" Style="float: right;" OnClick="sureBorrow_Click" />
                                <script> window.onload = function asdasd() {
     $("#ContentPlaceHolder1_mybookdata tr:first").wrap("<thead></thead>");
     $("#ContentPlaceHolder1_mybookdata thead").insertBefore("#GriView1 tbody");
     $("#ContentPlaceHolder1_mybookdata").dataTable();
 }</script>
                            </div>

                        </div>


                        <%=tips %>
                       

                    <!--End Advanced Tables -->
                </div>

            </div>
            <!-- /. ROW  -->



        </div>

        <!-- /. PAGE INNER  -->
    </div>
    <script>
        function loadtable() {
            $("#ContentPlaceHolder1_mybookdata tr:first").wrap("<thead></thead>");
            $("#ContentPlaceHolder1_mybookdata thead").insertBefore("#GriView1 tbody");
            $("#ContentPlaceHolder1_mybookdata").dataTable();
        };
    </script>
</asp:Content>

